import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import Vant from 'vant';
import 'vant/lib/index.css';
import axios from "axios";

axios.defaults.headers.post["Content-Type"] =
  "application/x-www-form-urlencoded";

Vue.prototype.axios = axios;

import VueAwesomeSwiper from 'vue-awesome-swiper'

import 'swiper/css/swiper.css'
import './assets/vantxx.css';
import VueLazyload from 'vue-lazyload'

Vue.prototype.busvue = new Vue();
Vue.use(VueAwesomeSwiper, /* { default options with global component } */)
Vue.use(Vant);

Vue.use(VueLazyload)
Vue.use(VueLazyload, {
  preLoad: 3,
  attempt: 1
})
Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
